package com.yxplearn.mybatisplus.mybatis_sample.pojo;

import com.yxplearn.mybatisplus.util.RandomUtils;

public class Blog {

    private int id;
    private String name;
    private int age;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Blog() {

    }

    public Blog(String name) {
        this.name = name;
        this.age = RandomUtils.getIntegerMoreThanZero();
    }

    @Override
    public String toString() {
        return "Blog{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
